package com.xinminda.dcf.bean;

import java.io.Serializable;

public class BaseRespose <T> implements Serializable {

    public int code;
    public String sucMsg;
    public String errMsg;
    public String requestId;
    public T data;

    public boolean success() {
        return 0 == code;
    }

    @Override
    public String toString() {
        return "BaseRespose{" +
                "code='" + code + '\'' +
                ", msg='" + sucMsg + '\'' +
                ", errorMsg='" + errMsg + '\'' +
                ", data=" + data +
                '}';
    }
}
